
//
//  Header.h
//  UI23_预编译
//
//  Created by dllo on 15/12/22.
//  Copyright © 2015年 dllo. All rights reserved.
//

#ifndef Header_h
#define Header_h


#endif /* Header_h */
#import "ViewController.h"
#if DEBUG

#define NSLog(FORMAT, ...) fprintf(stderr,"[%s:%d行] %s\n",[[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], __LINE__, [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);

#else

#define NSLog(FORMAT, ...) nil

#endif

#define iPhone6 ([UIScreen mainScreen].bounds.size.height == 667 )? YES : NO

//如果是DEBUG模式用测试服务器地址
#if DEBUG

#define     HttpBaseURL        @"http://www.test.com/" // 测试服务器

#else

#define     HttpBaseURL        @"http://www.baidu.com/" // 正式服务器

#endif


//判断当前系统版本和手机类型
#if DEBUG
#define     iOS8     ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0) ? YES : NO

#define     iPHone6   ([UIScreen mainScreen].bounds.size.height == 667) ? YES : NO

#endif


//判断当前系统版本和手机类型
#if DEBUG
#define     iOS8     ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0) ? YES : NO

#define     iPHone6   ([UIScreen mainScreen].bounds.size.height == 667) ? YES : NO


#endif

#define     YOUMENGKEY       @"5225ae5956240be8d70750dd"

#define AppDelegateInstance	                        ((AppDelegate*)([UIApplication sharedApplication].delegate))

#define DOCUMENTPAT [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject]

